<?php
namespace app\app\model;
use think\Request;
use think\Model;

class Users extends Model{

	public $user_id;

	//获取用户信息
	public function getInfo()
	{
		$data = $this->field('nickname,avatar_url,open_id')->where('id','eq',$this->user_id)->find();
		return $data;
	}
}